Problem Description: Today, Excel encountered a problem, the local use of microsoft.jet.oledb.4.0 processing, the normal completion of the requirements,An exception occurred after uploading to the server, by troubleshooting the discovery of a problem in the Excel file read, and then presumably becauseDid not install the corresponding driver, and then on the Micro
Reposted from: summary of the history of a difficult ASP. NET Excel file generation by Xuan soul's blog
The last task of the statistics system is to export data to Excel. as it was the first time, I learned and made a great deal of effort. After that, I made a summary.
The
C # Excel file encryption, supporting xlsx, docx, pptx (C # \ Net \ Asp. Net ),
From now on, I have closed it! No access is allowed!
A man like a wind has the same character as a wind. The problem arises. When the wind encounters sand, you may not beWind child, I amSha ErOfT
"Export the data in the gridview displayed on the page to an Excel table" encountered the following error: C # The format of the Excel file to be exported is different from the format specified by the extension. Details
Solution: Here we use "modify registry method" to solve this problem, which does not solve the problem from the root:
1.
Enter the following code in the click Event of the button to write the Excel file.When writing an Excel file, you must set the permissions for the project folder to grant the iuser_machine user the write permission.Private void button#click (object sender, System. EventArgs e){String filename = "";Excel. ApplicationCla
The following class libraries are mainly found:
Myxls (http://sourceforge.net/projects/myxls/)
Koogra (http://sourceforge.net/projects/koogra/)
Excellibrary (http://code.google.com/p/excellibrary/)
Excelpackage (http://excelpackage.codeplex.com/)
Epplus (http://epplus.codeplex.com/)
Linqtoexcel (http://code.google.com/p/linqtoexcel/)
Netoffice (http://netoffice.codeplex.com/) need to install Office Excel
The class
"Export data from the GridView in the page to Excel table" encountered an error: C # export Excel file open Excel file format inconsistent with extension specified format. Specific hints as shown:
workaround : Use the "Modif
Before doing the Winfrom program of export Excel file function, feel very simple. Now try to do the ability to export excel in ASP, before using the Microsoft.Office.Interop.Excel object to achieve data export Excel, it is completely disgusting to the
During Asp. NET development, some list items are often exported as Excel for users to view and save, but file names and content are also frequently garbled. Recently, I have also received such a Bug. I have summarized several solutions for your reference. We hope that some of the following methods can solve your proble
","attachment;filename="+fileinfo.name); -Response.AddHeader ("Content-length", fileInfo.Length.ToString ()); -Response.AddHeader ("content-transfer-encoding","binary"); the //tell the browser to pass to the user is a non-txt,rar, etc. does not appear on the Ieem of a file, do not need to open in the browser page, need to download directly -Response.ContentType ="Application/octet-stream"; -
1. Read the data connection string of the excel file. You can set the connection string to provider = microsoft. jet. oledb.4.0; data source = d: myexcel.xls; extended properties = excel 8.0 ;. To read the excel files in .xlsxand .xls format, set the connection character to "provider = microsoft. ace. oledb.12.0; data
1. Read the data connection string of the excel file. You can set the connection string to provider = microsoft. jet. oledb.4.0; data source = d: myexcel.xls; extended properties = excel 8.0 ;. To read the excel files in .xlsxand .xls format, set the connection character to "provider = microsoft. ace. oledb.12.0;
Solution:
Open your Excel file in Notepad
FileTo check whether it is garbled.
For HTML
Code, Indicates that your Excel file format is not a standard Excel format, and the error "External table is not in the expected format" wi
090618 the problem is that excel is related to the high security settings of the collection, so you can modify the security.
Other people's solutions to similar problems --"
Post, original post address: http://blog.csdn.net/dezwen/archive/2007/11/03/1864769.aspx
Cocould not load file or assembly 'Microsoft. Office. Interop. Excel, Version = 11.0.0.0, Culture = n
From: http://www.cnblogs.com/ok519/archive/2009/09/21/1570903.html
Recently, the winform application was developed, involving the embedding of Excel files. Technical verification is also coming to an end. You need to sort out the help documentation ..
Open excel with the webbrowser control.
/// ////// Public static Microsoft. Office. InterOP.
Cocould not load file or assembly 'Microsoft. Office. Interop. Excel, Version = 11.0.0.0, Culture = neutral, PublicKeyToken = 71e9bce111e9429c' or one of its dependencies.
There are two reasons for this problem:
1. "Excel 2003" is not installed in the system ";
2. "Excel 2003" is installed in the system, but it is not
Cocould not load file or assembly 'Microsoft. Office. InterOP. Excel, version = 11.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c' or one of its dependencies.
There are two reasons for this problem:
1. "Excel 2003" is not installed in the system ";
2. "Excel 2003" is installed in the system, but it i
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.